package org.jeecg.modules.mes.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 生产计划模板工种配置
 * @Author: jeecg-boot
 * @Date: 2025-01-21
 * @Version: V1.0
 */
@Data
@TableName("mes_template_work_type")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="mes_template_work_type对象", description="生产计划模板工种配置")
public class MesTemplateWorkType implements Serializable {
    private static final long serialVersionUID = 1L;

    /**主键*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    
    /**模板ID*/
    @Excel(name = "模板ID", width = 15)
    @ApiModelProperty(value = "模板ID")
    private String templateId;
    
    /**工种ID*/
    @Excel(name = "工种ID", width = 15)
    @ApiModelProperty(value = "工种ID")
    private String workTypeId;
    
    /**工种编码*/
    @Excel(name = "工种编码", width = 15)
    @ApiModelProperty(value = "工种编码")
    private String workTypeCode;
    
    /**工种名称*/
    @Excel(name = "工种名称", width = 15)
    @ApiModelProperty(value = "工种名称")
    private String workTypeName;
    
    /**工序顺序*/
    @Excel(name = "工序顺序", width = 15)
    @ApiModelProperty(value = "工序顺序")
    private Integer sequence;
    
    
    /**是否必需工种(0-否,1-是)*/
    @Excel(name = "是否必需工种", width = 15, dicCode = "yn")
    @ApiModelProperty(value = "是否必需工种(0-否,1-是)")
    private Integer isRequired;
    
    /**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
    
    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
    
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    
    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    
    /**更新日期*/
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    
    /**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
}
